package com.ss.android.article.base.feature.feed.vh;

import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.ss.android.article.base.feature.feed.FeedOnMovedToScrapHeapListener;
import com.ss.android.article.browser.R;

public final class LastReadItemHolder implements FeedOnMovedToScrapHeapListener {
    public String mTimeMinute;
    public String mTimeHour;
    public String mFeedLastReadRecent;
    public String mFeedLastReadDescTimeSuffix;
    public String mFeedLastReadDescTooEarly;
    public String mFeedLastReadRefresh;
    public String mFeedLastReadRefreshTooEarly;
    public ViewGroup mRootView;
    public View mTopDivider;
    public View mBottomDivider;
    public ImageView mLastReadRefreshIcon;
    public TextView mDesc;
    public TextView mRefresh;
    public boolean mIsNightMode;
    public Context mContext;

    public final void onMovedToScrapHeap() {
        if(this.mRefresh.getVisibility() == View.GONE) {
            this.mRefresh.setVisibility(View.VISIBLE);
            this.mLastReadRefreshIcon.setVisibility(View.VISIBLE);
            this.mDesc.setTextColor(ContextCompat.getColor(this.mContext, R.color.feed_last_read_des));
        }
    }
}

